<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="author" content="广州依旧电子商务有限公司--http://www.19DZ.com" />
		<title>校园联盟</title>
		<link rel="stylesheet" type="text/css" href="/mc/Public/Home/mc/css/style.css" />
		<link rel="stylesheet" type="text/css" href="/mc/Public/Home/mc/css/idangerous.swiper.css" />
	</head>

	<body>
		<!--头部-->
				<div class="header">
			<div class="main">
				<a href="http://localhost:8080/mc" class="logo fl"><img src="/mc/Public/Home/mc/img/logo.png" /></a>
				<ul class="header-nav fl">
					<li class="fl"><a href="http://localhost:8080/mc">首 页</a></li>
					<?php
 $_typeid = 0; if($_typeid == -1) $_typeid = I('cid', 0, 'intval'); $_navlist = get_category(1); if($_typeid == 0) { $_navlist = Common\Lib\Category::toLayer($_navlist); }else { $_navlist = Common\Lib\Category::toLayer($_navlist, 'child', $_typeid); } foreach($_navlist as $autoindex => $navlist): $navlist['url'] = get_url($navlist); ?><li class="fl"><a href='<?php echo ($navlist["url"]); ?>'><?php echo ($navlist["name"]); ?></a></li><?php endforeach;?>
<!-- 					<li class="fl"><a href="#">首页</a></li>
					<li class="fl"><a href="schoolContest.html">校园大赛</a></li>
					<li class="fl"><a href="schoolUnion.html">校园联盟</a></li>
					<li class="fl"><a href="http:/www.19Dz.com">创业定制</a></li>
					<li class="fl"><a href="orginzeFramework.html">组织架构</a></li>
					<li class="fl"><a href="schoolBusiness.html">校企对接</a></li> -->
				</ul>

				<div class="header_right fl" id="top_login_no">
					<a href="<?php echo U(MODULE_NAME.'/Public/login');?>">登录</a>
					<span>▏</span>
					<a href="<?php echo U(MODULE_NAME.'/Public/register');?>">注册</a>
				</div>

				<div class="header_right fl" id="top_login_ok" style="display:none;">
					<a href="javascript:void(0)" id="nickname">xxx</a>	
					<span>▏</span>
					<a href="<?php echo U(MODULE_NAME.'/Public/logout');?>">退出</a>
				</div>
			</div>
		</div>

<script type="text/javascript" src="/mc/Public/Home/mc/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript">

$(function(){
	var $chkurl = "<?php echo U('Public/loginChk');?>";
	$.get($chkurl,function(data){
		if (data.status == 1) {
			$('#top_login_no').hide();
			$('#top_login_ok').show();
			
			//$('#top_login_ok').find('span');
			$('#nickname').html(data.nickname);
		}else {			
			$('#top_login_ok').hide();
			$('#top_login_no').show();
		}
	},'json');	
});
</script>
		<!--头部  End-->

		<!-- 分页面校园联盟-->
		<!-- 标题 -->
		<div>
			<img src="/mc/Public/Home/mc/img/sp_02.jpg" alt="校园联盟" style="width: 100%;height: 100%">
		</div>
		<!-- 标题end -->
		<!-- 6个盒子 -->
		<div class="modular1 sUbg">
			<div class="main mainBox">
				<div class="fl sCtitle" style="margin-left: 0px;">学习活动</div>
				<img class="fl" src="/mc/Public/Home/mc/img/sp_03.jpg" style="margin-left: 10px;">
			</div>

			
			<div class="main sUbox">
				<?php
 $_typeid = -1; $_keyword = ""; $_arcid = ""; if($_typeid == -1) $_typeid = I('get.cid', 0, 'intval'); if ($_typeid>0 || substr($_typeid,0,1) == '$') { $ids = Common\Lib\Category::getChildsId(get_category(), $_typeid, true); $where = array('article.status' => 0, 'article.cid'=> array('IN',$ids)); }else { $where = array('article.status' => 0); } if ($_keyword != '') { $where['article.title'] = array('like','%'.$_keyword.'%'); } if (!empty($_arcid)) { $where['article.id'] = array('IN', $_arcid); } if (0 > 0) { $where['_string'] = 'article.flag & 0 = 0 '; } if (0 > 0) { $count = D2('ArcView','article')->where($where)->count(); $ename = I('e', '', 'htmlspecialchars,trim'); if (!empty($ename) && C('URL_ROUTER_ON') == true) { $param['p'] = I('p', 1, 'intval'); $param_action = '/'.$ename; }else { $param = array(); $param_action = ''; } $thisPage = new \Common\Lib\Page($count, 0, $param, $param_action); $thisPage->rollPage = 5; $thisPage->setConfig('prev',"上一页"); $thisPage->setConfig('next',"下一页"); $thisPage->setConfig('first',"首页"); $thisPage->setConfig('end',"尾页"); $thisPage->setConfig('theme'," %FIRST% %UP_PAGE% %LINK_PAGE% %DOWN_PAGE% %END%"); $limit = $thisPage->firstRow. ',' .$thisPage->listRows; $page = $thisPage->show(); }else { $limit = "10"; } $_artlist = D2('ArcView','article')->nofield('')->where($where)->order("id DESC")->limit($limit)->select(); if (empty($_artlist)) { $_artlist = array(); } foreach($_artlist as $autoindex => $artlist): $_jumpflag = ($artlist['flag'] & B_JUMP) == B_JUMP? true : false; $artlist['url'] = get_content_url($artlist['id'], $artlist['cid'], $artlist['ename'], $_jumpflag, $artlist['jumpurl']); if(0) $artlist['title'] = str2sub($artlist['title'], 0, 0); if(0) $artlist['description'] = str2sub($artlist['description'], 0, 0); ?><div class="sUbox-six">
					<a href="#"><img src="<?php echo ($artlist["litpic"]); ?>">
					<div class="sUbox-six-text">
						<h2><?php echo ($artlist["title"]); ?></h2>
						<p><?php echo ($artlist["content"]); ?></p>
					</div></a>
				</div><?php endforeach;?>	
			</div>
		</div>


		<!--尾部-->
				<div class="footer">
			<div class="main">
				<div class="footer_left fl">
					<dl>
						<dt>我们的服务</dt>
						<a href="#">
							<dd>某某服务</dd>
						</a>
						<a href="#">
							<dd>某某服务</dd>
						</a>
						<a href="#">
							<dd>某某服务</dd>
						</a>
					</dl>
					<dl>
						<dt>热门话题</dt>
						<a href="#">
							<dd>某某服务</dd>
						</a>
						<a href="#">
							<dd>某某服务</dd>
						</a>
						<a href="#">
							<dd>某某服务</dd>
						</a>
					</dl>
					<dl>
						<dt>友情链接</dt>
						<a href="#">
							<dd>某某服务</dd>
						</a>
						<a href="#">
							<dd>某某服务</dd>
						</a>
						<a href="#">
							<dd>某某服务</dd>
						</a>
					</dl>
				</div>
				<div class="footer_right">
					<img src="/mc/Public/Home/mc/img/QRcode1.jpg" class="fl"/>
					<img src="/mc/Public/Home/mc/img/QRcode2.jpg" class="fl"/>
				</div>
			</div>
			<div class="footer_bottom">
				<div class="main">
					<div class="footer_bottom_left">
						Copyright &copy; 2008-2015 广州大学生创业定制平台
					</div>
					<div class="footer_bottom_right">
						<a href="#">关于我们</a>
						<span>▏</span>
						<a href="#">联系我们</a>
						<span>▏</span>
						<a href="#">友情链接</a>
					</div>
				</div>
			</div>
		</div>
		<!--尾部   End-->

		<script type="text/javascript" src="/mc/Public/Home/mc/js/jquery-1.11.1.min.js"></script>
		<script type="text/javascript" src="/mc/Public/Home/mc/js/idangerous.swiper.min.js"></script>
		<script type="text/javascript" src="/mc/Public/Home/mc/js/myjs.js"></script>
	</body>

</html>